<?php
namespace app\webadmin\controller;
use think\Request;
use think\Db;
class Vueface extends Base{

    public function _initialize(){
		header('Access-Control-Allow-Origin: *');
    }
	
	public function getrem(Request $request){
		$is_delete = $request->param('is_delete');
		if(!$is_delete){
			$msg = ['code'=>2,'msg'=>'参数错误'];
			return json_encode($msg,true);
		}
		$rem = Db::name('music_rem')->where('is_delete',$is_delete)->select();
		if($rem){
			$msg = ['code'=>0,'msg'=>'获取数据成功','data'=>$rem];
		}else{
			$msg = ['code'=>0,'msg'=>'获取数据成功','data'=>[]];
		}
		return json_encode($msg,true);
	}

}